#创建指定个数的文件夹
import random
import os
import os.path
from os import mkdir


def create_dirs(path,num):
    for i in range(1,num+1):
        #os.mkdir(os.path.join(path,str(i)))
        os.mkdir(path + '/' + str(i))
if __name__ == '__main__':
    path = './newdir'
    if not os.path.exists(path):
        os.mkdir(path)
    num = eval(input('请输入文件夹个数'))
    create_dirs(path,num)
